package com.huarun.common.util;

/**
 * 
 * @author hqy
 * @创建时间   2018-10-17 13:50
 * @Description 常量类，用于保存通用的常量
 */
public class Constant {

	public static final int ZERO = 0;
	public static final int ONE = 1;
	public static final int TWO = 2;
	public static final int THREE = 3;
	public static final int FOUR = 4;
	public static final int FIVE = 5;
	public static final int SIX = 6;
	public static final int SEVEN = 7;
	public static final int EIGHT = 8;
	public static final int NINE = 9;
	public static final int TEN = 10;
	public static final int ELEVEN = 11;
	public static final int TWELVE = 12;
	
	public static final int SKEY_EXPIRETIME = 7200;
	
	public static final String JASYPT_ENCRYPTOR_PASSWORD="G0CvDz7oJn666";

	/** 图片服务器访问地址 */
	public static String FDFS_IP = PropertyUtil.getProperty("fdfs_ip");

	public static String FTP_VISITOR_IP = PropertyUtil.getProperty("ftp_visitor_ip");

	public final static String CHARSET = "utf-8";
	public final static String METHOD_GET = "get";
	public final static String METHOD_POST = "post";
	/**
	 * 申请类型--报修
	 */
	public final static String APPLY_TYPE_REPAIR="1";
	/**
	 * 申请类型--空调加时
	 */
	public final static String APPLY_TYPE_AIR="2";
	/**
	 * 申请类型--货物放行
	 */
	public final static String APPLY_TYPE_APPROVAL="3";
	/**
	 * 申请类型--货物放行--戎光营运后台
	 */
	public final static String RG_APPLY_TYPE_APPROVAL="2";
	
	/**
	 * 申请类型--货物放行--戎光营运后台
	 */
	public final static String RG_SUCCESS_CODE="0";

	/** 微瓴 登录信息*/
	public final static String WELINK_VIDEO_URI = PropertyUtil.getProperty("welink_video_uri");
	public final static String WELINK_LOGIN_HOST = PropertyUtil.getProperty("welink_login_host");
	public final static String WELINK_LOGIN_URI = PropertyUtil.getProperty("welink_login_uri");
	public final static String WELINK_APP_ID = PropertyUtil.getProperty("welink_app_id");
	public final static String WELINK_APP_KEY = PropertyUtil.getProperty("welink_app_key");
	public final static String WELINK_APP_TICKET = PropertyUtil.getProperty("welink_app_ticket");
	public final static String WELINK_APP_PROJECTID = PropertyUtil.getProperty("welink_app_projectid");
	public final static String WELINK_APP_VIDEO_DIN = PropertyUtil.getProperty("welink_app_video_din");

	/** 小程序 */
	public final static String WX_GETOPENID_URL = PropertyUtil.getProperty("wx_getopenid");
	public final static String WX_APPID = PropertyUtil.getProperty("wx_appid");
	public final static String WX_SECRET = PropertyUtil.getProperty("wx_secret");
	public final static String WX_GRANT_TYPE = PropertyUtil.getProperty("wx_grant_type");

	/**密码格式*/
	public static final String PWD_FORMAT_NUMBER = PropertyUtil.getProperty("number");
	public static final String PWD_FORMAT_LETTERS = PropertyUtil.getProperty("letters");
	public static final String PWD_FORMAT_NUMBERLETTERS = PropertyUtil.getProperty("numberLetters");
	public static final String PWD_FORMAT_NUMBERLETTERSSYMBOL = PropertyUtil.getProperty("numberLettersSymbol");

	/** 腾讯短信 */
	public static final String TENCENT_SMS_APPID = PropertyUtil.getProperty("tencent_sms_appid");
	public static final String TENCENT_SMS_APPKEY = PropertyUtil.getProperty("tencent_sms_appkey");
	/**忘记密码-手机短信信息*/
	public static final String TENCENT_SMS_FORGET_PASSWORD_CONTENT = PropertyUtil
			.getProperty("tencent_sms_forget_password_content");
	/**忘记密码-手机短信信息-失效时间(分钟)*/
	public static final String TENCENT_SMS_FORGET_PASSWORD_MINUTE = PropertyUtil
			.getProperty("tencent_sms_forget_password_minute");

	/**face++账号*/
	public final static String FACE_USERNAME = PropertyUtil.getProperty("face_username");
	public final static String FACE_PASSWORD = PropertyUtil.getProperty("face_password");
	/**智慧运营管理平台*/
	public final static String PC_APPKEY = PropertyUtil.getProperty("pc_appkey");
	public final static String PC_SECRET = PropertyUtil.getProperty("pc_secret");
	public final static String MANAGE_APPKEY = PropertyUtil.getProperty("manage_appkey");
	public final static String MANAGE_SECRET = PropertyUtil.getProperty("manage_secret");

	/**********************************接口api start**************************************/
	/**token认证方式*/
	public static final String MANAGE_GETTOKEN = "api/Login/GetToken";
	/**工单任务统计*/
	public static final String MANAGE_GETORDERSCOUNT = "api/Project_WorkOrders/GetOrdersCount";
	/**工单任务列表*/
	public static final String MANAGE_GETSEARCHMANAGER = "api/Project_WorkOrders/GetSearchManager";
	/**工单任务详情*/
	public static final String MANAGE_GETWORKORDERSINFO = "api/Project_WorkOrders/GetWorkOrdersInfo";
	/**工单业主数（户）*/
	public static final String MANAGE_GETWORKORDERAREATYPECHARTS = "api/Project_WorkOrders/GetWorkOrderAreaTypeCharts";
	/**报修类型分布*/
	public static final String MANAGE_GETWORKORDERSTATISTICSTABLE = "api/Project_WorkOrders/GetWorkOrderStatisticsTable";
	/**完成工单数人员排行 Top 10*/
	public static final String MANAGE_GETOVERWORKORDERMAXTOP10 = "api/Project_WorkOrders/GetOverWorkOrderMaxTop10";
	/**报修时间分布（月）*/
	public static final String MANAGE_GETWORKORDERTIMEOFDAYDATA = "api/Project_WorkOrders/GetWorkOrderTimeOfDayData";
	/**报修工单状态分布*/
	public static final String MANAGE_GETWORKORDERSTATEDATAS = "api/Project_WorkOrders/GetWorkOrderStateDatas";
	/**报修日期分布（月）*/
	public static final String MANAGE_GETWORKORDERDAYOFWEEKDATA = "api/Project_WorkOrders/GetWorkOrderDayOfWeekData";
	/**新增工单*/
	public static final String MANAGE_POSTORDERADD = "api/Project_WorkOrders/PostOrderAdd";
	/**上传工单附件信息*/
	public static final String MANAGE_MULTIPLEFILEUPLOADMOBILE = "/ThirdPart/api/File/MultipleFileUploadMobile";
	//public static final String MANAGE_MULTIPLEFILEUPLOADMOBILE = "/HuaRunCity.API/api/File/MultipleFileUploadMobile";
	/**巡检任务统计*/
	public static final String MANAGE_GETINSPECTTASKCOUNT = "api/Project_Inspect/GetInspectTaskCount";
	/**巡检任务列表*/
	public static final String MANAGE_GETINSPECTTASKLIST = "api/Project_Inspect/GetInspectTaskList";
	/**巡检任务详情*/
	public static final String MANAGE_GETINSPECTTASKDETAIL = "api/Project_Inspect/GetInspectTaskDetail";
	/**设备台账相关接口*/
	public static final String MANAGE_GETPROJECTEQUIPANALYSIS = "api/Analysis/GetProjectEquipAnalysis";
	/**维保计划*/
	public static final String MANAGE_GETMAINTENANCEPLAN = "api/Maintenance_MaintenancePlan/GetMaintenancePlan";
	/**维保计划计划列表数据数量*/
	public static final String MANAGE_GETMAINTENANCEPLANCOUNT = "api/Maintenance_MaintenancePlan/GetMaintenancePlanCount";
	/**维保任务（获取本周的数据）*/
	public static final String MANAGE_GETMAINTENANCELIST = "api/App_MaintenancePlan/GetMaintenanceList";
	/**逾期、进行中、已完成的任务*/
	public static final String MANAGE_GETMAINTENANCEBYSTATE = "api/App_MaintenancePlan/GetMaintenanceByState";
	/**人员定位相关接口*/
	public static final String MANAGE_PEOPLELOCATION = "api/BRTLocation/PeopleLocation";
	/**获取某楼层所有人的坐标*/
	public static final String MANAGE_FLOORPEOPLE = "api/BRTLocation/FloorPeople";
	/**获取某个坐标附近的人员*/
	public static final String MANAGE_PEOPLENEARBY = "api/BRTLocation/PeopleNearby";
	/**特殊人员列表*/
	public static final String MANAGE_GETSEARCH = "api/View_SuspectPersonAlerm/GetSearch";
	/**特殊人员出现记录*/
	public static final String MANAGE_GETSEARCHALERM = "api/View_EventRecords/GetSearchAlerm";
	/**完成工单统计/报修各类占比*/
	public static final String MANAGE_GETMONTHOCCUPIEDDATA = "api/Analysis_WorkOrders/GetMonthOccupiedData";
	/**未完成工单统计*/
	public static final String MANAGE_GETUNFINISHWORKORDERSDATA = "api/Analysis_WorkOrders/GetUnfinishWorkOrdersData";

	/**1.1 登录*/
	public static final String FACE_LOGIN = "/auth/login";
	
	
	/**z运营管理平台对外接口API***/
	public static final String  BASE_URL=PropertyUtil.getProperty("manage_url");
	/**获取工单列表 （报修申请）* by eva*******/
	public static final String  WORK_ORDER_LIST="/ThirdPart/api/v1/Project_WorkOrders/GetWorkOrderList/";
	//public static final String  WORK_ORDER_LIST="/HuaRunCity.API/api/v1/Project_WorkOrders/GetWorkOrderList/";
	/** 获取工单详情**/
	public static final String  WORK_ORDER_DETAIL="/ThirdPart/api/v1/Project_WorkOrders/GetWorkOrdersInfo/";
	//public static final String  WORK_ORDER_DETAIL="/HuaRunCity.API/api/v1/Project_WorkOrders/GetWorkOrdersInfo/";
	/** 新增工单（报修**/
	public static final String  WORK_ORDER_INSERT="/ThirdPart/api/Project_WorkOrders/InsertWorkOrders";
	//public static final String  WORK_ORDER_INSERT="/HuaRunCity.API/api/Project_WorkOrders/InsertWorkOrders";
/*****************************************报修接口*******************************************************/
	
	
	/*****************************************报事接口（货物放行和空调加时)***************************************/
	/** 获取报事类型**/
	public static final String  WORK_TYPE="/ThirdPart/api/v1/Project_Report/GetApplyType";
	//public static final String  WORK_TYPE="/HuaRunCity.API/api/v1/Project_Report/GetApplyType";
	/** 获取设备列表（货物放行）**/
	public static final String  FAC_TYPE="/ThirdPart/api/v1/Project_Report/GetEquipmentList/";
	//public static final String  FAC_TYPE="/HuaRunCity.API/api/v1/Project_Report/GetEquipmentList/";
	
	/**获取工单列表 （货物放行，空调加时）* by eva*******/
	public static final String  WORK_ORDER_LIST2="/ThirdPart/api/v1/Project_Report/GetWorkOrderList/";
	//public static final String  WORK_ORDER_LIST2="/HuaRunCity.API/api/v1/Project_Report/GetWorkOrderList/";
	/**获取工单详情（货物放行，空调加时） * */
	public static final String  WORK_DETAIL="/ThirdPart/api/v1/Project_Report/GetWorkOrderDetail/";
	//public static final String  WORK_DETAIL="/HuaRunCity.API/api/v1/Project_Report/GetWorkOrderDetail/";
	/**新增工单（货物放行，空调加时） * */
	public static final String  WORK_INSERT="/ThirdPart/api/Project_Report/InsertWorkOrders";
	//public static final String  WORK_INSERT="/HuaRunCity.API/api/Project_Report/InsertWorkOrders";
	/**  获取工单状态（报事/报修）*/
	public static final String  WORK_STATUS="/ThirdPart/api/v1/Project_WorkOrders/GetWorkOrderState/";
	//public static final String  WORK_STATUS="/HuaRunCity.API/api/v1/Project_WorkOrders/GetWorkOrderState/";

	/**********************************报事接口api end********************************************************/
	
	
	/******************************************获取用户信息***************************************************/

	/** 获取租户信息Tenant 列表**/
	public static final String  TENANT_LIST="/ThirdPart/api/v1/ProjectLessee/GetLesseeInfoList/";
	//public static final String  TENANT_LIST="/HuaRunCity.API/api/v1/ProjectLessee/GetLesseeInfoList/";
	
	/** 获取租户详情**/
	public static final String  TENANT_INFO="/ThirdPart/api/v1/ProjectLessee/GetLesseeInfo/";
	//public static final String  TENANT_INFO="/HuaRunCity.API/api/v1/ProjectLessee/GetLesseeInfo/";
	
	/** 根据手机号****************************************获取公司，部门等详情**/
	public static final String  TENANT_INFO_FROM_MOBILE="/ThirdPart/api/v1/ProjectLessee/GETLesseeInfoFromMoblie/";
	//public static final String  TENANT_INFO_FROM_MOBILE="/HuaRunCity.API/api/v1/ProjectLessee/GETLesseeInfoFromMoblie/";
	
	/** 根据手机号、项目ID *********************************获取公司，部门等详情 GetLesseeInfoByTel**/
	public static final String  TENANT_INFO_BY_TEL_AND_PROID="/ThirdPart/api/v1/ProjectLessee/GetLesseeInfoByTel/";
	//public static final String  TENANT_INFO_BY_TEL_AND_PROID="/HuaRunCity.API/api/v1/ProjectLessee/GetLesseeInfoByTel/";
	
	
	/** 根据手机号、项目ID *********************************获取公司，部门等详情 GetLesseeInfoByTel**/
	public static final String  TENANT_INFO_BY_DEPTNAME_AND_PROID="/ThirdPart/api/v1/ProjectLessee/GetLesseeInfoByTel/";
	//public static final String  TENANT_INFO_BY_DEPTNAME_AND_PROID="/HuaRunCity.API/api/v1/ProjectLessee/GetLesseeInfoByTel/";
	
	/** 根据部门名称、项目ID ****************************获取公司，部门等详情 GetLesseeInfoByName**/
	public static final String  TENANT_INFO_BY_TEL_AND_DEPTNAME="/ThirdPart/api/v1/ProjectLessee/GetLesseeInfoByName/";
	//public static final String  TENANT_INFO_BY_TEL_AND_DEPTNAME="/HuaRunCity.API/api/v1/ProjectLessee/GetLesseeInfoByName/";
	
	/** 新增******************************子管理员信息  AddLesseeChildrenInfo**/
	public static final String  ADD_LESSEE_CHILDREN_INFO="/ThirdPart/api/Project_Lessee/AddLesseeChildrenInfo";
	//public static final String  ADD_LESSEE_CHILDREN_INFO="/HuaRunCity.API/api/Project_Lessee/AddLesseeChildrenInfo";

	
	/** 修改******************************子管理员信息  EditLesseeChildrenInfo**/
	public static final String  EDIT_LESSEE_CHILDREN_INFO="/ThirdPart/api/Project_Lessee/EditLesseeChildrenInfo";
	//public static final String  EDIT_LESSEE_CHILDREN_INFO="/HuaRunCity.API/api/Project_Lessee/EditLesseeChildrenInfo";
	

	/** 删除******************************子管理员信息  DelLesseeChild**/
	public static final String  DEL_LESSEE_CHILDREN="/ThirdPart/api/v1/ProjectLessee/DelLesseeChild/";
	//public static final String  DEL_LESSEE_CHILDREN="/HuaRunCity.API/api/v1/ProjectLessee/DelLesseeChild/";
	
	
	/******************************************获取用户信息end***************************************************/
	
	/** 根据手机号获取公司，部门等详情**/
	public static final String  PROJECT_ID="1";
	public static final int R_ERROR = 400;
	public static final String ERROR_MESSAGE = "error";
	
	
	public static final int MAIN_ADMIN_ROLE = 1; // 管理员
	public static final int SUB_ADMIN_ROLE = 2; // 子管理员
	public static final int LESSEE_ROLE = 3;	// 一般租户
	public static final int VISITOR_ROLE = 4;	// 访客
	
	
}
